package org.ch00.test02.entity;

/**
 * 老师 - 父类 - 把所有老师公共的代码抽象（提取）到该类中
 *
 * @author CSY
 * @date 2025 - 02 - 28
 */
public class Teacher {
    private String name;
    private String school;
    public Teacher(){}
    public Teacher(String school, String name) {
        this.school = school;
        this.name = name;
    }

    public void teach(){
        System.out.println("讲课...");
    }

    public void jieShao(){
        System.out.println("大家好...");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }
}
